/**
 * 
 */
package business;

import java.util.ArrayList;

import dbAccess.RechercheDBAccess;
import exceptions.*;
import model.*;

/**
 * @author Anthares & Hennek
 *
 */
public class RechercheManager {
	private RechercheDBAccess rdba = new RechercheDBAccess();
	public ArrayList<Etudiant> rechercheEtudiant(int syllabus_id, Boolean paye, String etat) throws PasIdentificationException, DatabaseErrorException, InvalidDataException{
		if(syllabus_id<0) throw new InvalidDataException();
		return rdba.rechercheEtudiant(syllabus_id, paye, etat);
	}
	public ArrayList<Commande_etu> rechercheSyllabusEtudiant(String etu) throws PasIdentificationException, DatabaseErrorException, InvalidDataException{
		if(etu==null) throw new InvalidDataException();
		return rdba.rechercheSyllabusEtudiant(etu);
	}
	public ArrayList<Syllabus> rechercheSyllabusDispo(Section sect, int annee) throws PasIdentificationException, DatabaseErrorException, InvalidDataException{
		if(sect==null || annee<0 || annee>3) throw new InvalidDataException();
		return rdba.rechercheSyllabusDispo(sect, annee);
	}
}
